package com.jeff.tianti.cms.service;

import com.jeff.tianti.cms.entity.AwardDescription;
import com.jeff.tianti.cms.dao.AwardDescriptionDao;
import com.jeff.tianti.cms.dto.AwardDescriptionQueryDTO;
import com.jeff.tianti.common.service.CommonService;
import com.jeff.tianti.common.entity.PageModel;
import org.springframework.stereotype.Service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author NOW_GO
 * @desc AwardDescriptionService类
 * @date 2019-07-15
 */
@Service
public class AwardDescriptionService extends CommonService<AwardDescription, String> {

    @Autowired
    private AwardDescriptionDao awardDescriptionDao;

    @Autowired
    public void setAwardDescriptionDao(AwardDescriptionDao awardDescriptionDao) {
        super.setCommonDao(awardDescriptionDao);
    }

    public PageModel<AwardDescription> queryAwardDescriptionPage(AwardDescriptionQueryDTO awardDescriptionQueryDTO) {
        return this.awardDescriptionDao.queryAwardDescriptionPage(awardDescriptionQueryDTO);
    }

    public List<AwardDescription> queryAwardDescriptionList(AwardDescriptionQueryDTO awardDescriptionQueryDTO) {
        return this.awardDescriptionDao.queryAwardDescriptionList(awardDescriptionQueryDTO);
    }

    public AwardDescription findByCode(String code) {
        return this.awardDescriptionDao.findByCode(code);
    }


}